home *** CD-ROM | disk | FTP | other *** search
/ PC World 2004 October / PCWorld_2004-10_cd.bin / software / temacd / sandra / san2004.SP2b-9133-Win32-SSO.exe / {app} / examples / ReportStyle.xsl < prev    next >
Extensible Markup Language  |  2004-05-12  |  1KB  |  56 lines

  1. <?xml version="1.0"?>
  2. <HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3.  
  4. <BODY>
  5.  
  6. <xsl:for-each select="TModule">
  7.   <h2><xsl:value-of select="Name"/></h2>
  8.  
  9.   <xsl:for-each select="TClass">
  10.     <h3><xsl:value-of select="Name"/></h3>
  11.  
  12.     <xsl:for-each select="TDevice">
  13.       <h3><xsl:value-of select="Name"/></h3>
  14.  
  15.       <xsl:for-each select="TItemGroup">
  16.         <h4><xsl:value-of select="Name"/></h4>
  17.  
  18.         <xsl:for-each select="TItem">
  19.           <DIV CLASS="field"><xsl:value-of select="Name"/> : <xsl:value-of select="DataValue"/></DIV>
  20.         </xsl:for-each>
  21.  
  22.       </xsl:for-each>
  23.     </xsl:for-each>
  24.   </xsl:for-each>
  25.  
  26.   <xsl:for-each select="TDevice">
  27.     <h3><xsl:value-of select="Name"/></h3>
  28.  
  29.     <xsl:for-each select="TItemGroup">
  30.       <h4><xsl:value-of select="Name"/></h4>
  31.  
  32.       <xsl:for-each select="TItem">
  33.         <DIV CLASS="field"><xsl:value-of select="Name"/> : <xsl:value-of select="DataValue"/></DIV>
  34.       </xsl:for-each>
  35.  
  36.     </xsl:for-each>
  37.   </xsl:for-each>
  38.  
  39.   <xsl:for-each select="TItemGroup">
  40.     <h4><xsl:value-of select="Name"/></h4>
  41.  
  42.     <xsl:for-each select="TItem">
  43.       <DIV CLASS="field"><xsl:value-of select="Name"/> : <xsl:value-of select="DataValue"/></DIV>
  44.     </xsl:for-each>
  45.  
  46.   </xsl:for-each>
  47.  
  48.   <xsl:for-each select="TItem">
  49.       <DIV CLASS="field"><xsl:value-of select="Name"/> : <xsl:value-of select="DataValue"/></DIV>
  50.   </xsl:for-each>
  51.  
  52. </xsl:for-each>
  53.  
  54.  
  55. </BODY>
  56. </HTML>